package com.gillion.grule.client.core.variable;

import com.fasterxml.jackson.annotation.JsonIgnore;




public class DecisionTreeVariable
        extends BaseVariable
{
    @JsonIgnore
    private PackageVariable packageVariable;

    public Object getVariable(String name) {
        Object t = this.variables.get(name);
        return (t != null) ? t : this.packageVariable.getVariable(name);
    }

    public PackageVariable getPackageVariable() {
        return this.packageVariable;
    }

    public void setPackageVariable(PackageVariable packageVariable) {
        this.packageVariable = packageVariable;
    }
}